package scau.erps.view.base;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JPanel;

/**
 * 数字仪表盘面板
 * @author DCJ
 *
 */
public class DashBoardPanel extends JPanel {
	private static final long serialVersionUID = 1L;
	private SchedulePanel schedulePanel;
	private FinancePanel financePanel;
	private ComprehensiveCostsPanel comprehensiveCostsPanel;
	private StorePanel storePanel;
	public DashBoardPanel(){		
		JPanel	dashBoardPanel = new JPanel();	
		dashBoardPanel.setLayout(new BorderLayout());
		schedulePanel = new SchedulePanel();		
		JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));	
		financePanel = new FinancePanel();
		comprehensiveCostsPanel = new ComprehensiveCostsPanel();
		storePanel = new StorePanel();
		panel.add(financePanel);		
		panel.add(comprehensiveCostsPanel);
		panel.add(storePanel);
		dashBoardPanel.add(schedulePanel,BorderLayout.NORTH);
		dashBoardPanel.add(panel,BorderLayout.CENTER);
		this.add(dashBoardPanel);
		this.setDashBoardData();
	}
	public void setDashBoardData(){
		this.schedulePanel.setSeheduleData();
		this.financePanel.setFinanceData();
		this.comprehensiveCostsPanel.setComprehensiveCostsData();
		this.storePanel.setStoreData();		
	}
}
